package myenum.enum03;

import myenum.enum02.SeasonEnum02;

public class TestSeason {
    public static void main(String[] args) {
        SeasonEnum03 spring = SeasonEnum03.SPRING;
        System.out.println(spring); // 直接输出SPRING

        System.out.println("------------------------");

        SeasonEnum03[] values = SeasonEnum03.values();
        for (SeasonEnum03 s : values){
            System.out.println(s);
        }
        System.out.println("------------------------");

        System.out.println(SeasonEnum03.valueOf("SPRING")); // 名称必须写对
    }
}
